//登录接口需要携带参数的ts类型
export interface loginForm {
  username: string;
  password: string;
}

interface dataType {
  token?: string;
  message?: string;
}

//登录接口返回的数据类型
export interface loginResult {
  code: number;
  data: dataType;
}

//获取用户信息接口返回的数据类型
interface userInfoType {
  userId: number;
  avatar: string;
  username: string;
  password: string;
  desc: string;
  roles: string[];
  buttons: string[];
  routes: string[];
  token: string;
}

interface user {
  checkUser: userInfoType;
}

export interface userInfoResult {
  code: number;
  data: user;
}
